const aqcs = [
  "作业人员身体条件符合要求（监护人）",
  "作业人员着装符合作业要求（监护人）",
  "作业人员佩戴符合标准要求的安全帽、安全带，有可能散发有毒气体的场所携带正压式空气呼吸器或者面罩备用（监护人）",
  "作业人员携带有工具袋及安全绳（监护人）",
  "现场搭设的脚手架、防护网、围栏符合安全规定（监护人）",
  "垂直分层作业中间有隔离设施（监护人）",
  "梯子、绳子符合安全规定（监护人）",
  "轻型棚的承重梁、柱能承重作业过程最大负荷的要求（监护人）",
  "作业人员在不承重物作业所搭设的承重板稳定牢固（监护人）",
  "采光、夜间作业照明符合作业要求（监护人）",
  "30m以上高处作业已配备通信、联络工具（监护人）",
  "作业现场四周已设警戒区（监护人）",
  "露天作业，风力满足作业安全要求（监护人）",
  "其他相关特殊作业已办理相应安全作业证（监护人）",
];
let formOptions = [
  {
    label: "作业申请部门",
    optionItems: [],
    prop: "jobApplyCompany",
    type: "input",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },
  {
    label: "申请人",
    optionItems: [],
    prop: "sqr",
    type: "input",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },
  {
    label: "作业人",
    optionItems: [],
    prop: "zyr",
    type: "zyry",
    required: true,
    multiple: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },
  {
    label: "作业申请时间",
    optionItems: [],
    prop: "jobApplyDate",
    type: "datetime",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },
  {
    label: "作业单位",
    optionItems: [],
    prop: "zydw",
    type: "input",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },
  {
    label: "作业地点",
    optionItems: [],
    prop: "local",
    type: "input",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },
  {
    label: "作业内容",
    optionItems: [],
    prop: "zynr",
    type: "input",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
    end: 72,
  },
  {
    label: "作业时间",
    optionItems: [],
    prop: "jobDate",
    type: "newdatetimerange",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },
  {
    label: "作业高度",
    optionItems: [],
    prop: "zygd",
    type: "input",
    required: true,
    hz: "m",
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },
  {
    label: "作业单位现场监护人",
    optionItems: [],
    prop: "zyjhr",
    type: "zyry",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },

  {
    label: "作业级别",
    optionItems: [
      {
        value: "Ⅰ级2m≤h≤5m",
        text: "Ⅰ级2m≤h≤5m",
      },
      {
        value: "Ⅱ级5m＜h≤15m",
        text: "Ⅱ级5m＜h≤15m",
      },
      {
        value: "Ⅲ级l5m＜h≤30m",
        text: "Ⅲ级l5m＜h≤30m",
      },
      {
        value: "Ⅳ级h＞30m",
        text: "Ⅳ级h＞30m",
      },
    ],
    prop: "zyjb",
    type: "radio",
    required: true,
    rules: [
      {
        required: true,
        errorMessage: "字段为必填项",
      },
    ],
  },

  {
    label: "关联的其他特殊作业及安全作业票编号：",
    optionItems: [],
    prop: "glqtzyp",
    type: "glzyp",
    required: false,
  },
  {
    label: "风险辨识结果",
    optionItems: [
      {
        value: "物体打击",
        text: "物体打击",
      },
      {
        value: "机械伤害",
        text: "机械伤害",
      },
      {
        value: "起重伤害",
        text: "起重伤害",
      },
      {
        value: "触电",
        text: "触电",
      },
      {
        value: "火灾",
        text: "火灾",
      },
      {
        value: "高处坠落",
        text: "高处坠落",
      },

      {
        value: "淹溺",
        text: "淹溺",
      },
      {
        value: "交叉作业",
        text: "交叉作业",
      },
      {
        value: "灼烫",
        text: "灼烫",
      },
      {
        value: "容器爆炸",
        text: "容器爆炸",
      },
      {
        value: "其他爆炸",
        text: "其他爆炸",
      },
      {
        value: "中毒窒息",
        text: "中毒窒息",
      },
      {
        value: "电磁辐射",
        text: "电磁辐射",
      },
      {
        value: "其他风险",
        text: "其他风险",
      },
    ],
    prop: "risk",
    type: "checkbox",
    required: false,
    rules: [],
  },
];
aqcs.forEach((item, index) => {
  formOptions.push({
    label: `${index + 1}.${item}`,
    optionItems: [
      {
        value: "是",
        text: "涉及",
      },
      {
        value: "否",
        text: "不涉及",
      },
    ],
    prop: `yesOrNo${index + 1}`,
    type: "labelradio",
    required: false,
    rules: [],
  });
  // formOptions.push({
  //   label: "电子签名",
  //   optionItems: [],
  //   type: "slot",
  //   // prop: `qianming${index + 1}`,
  //   prop: `qianming1`,
  // });
});
formOptions = [
  ...formOptions,
  {
    label: "其他安全措施",
    optionItems: [],
    prop: "qtaqcs",
    type: "qtaqcs",
    multiple: true,
  },
  {
    label: "编制人",
    optionItems: [],
    prop: "bzr",
    type: "input",
    required: false,
  },
  {
    label: "安全措施电子签名",
    optionItems: [],
    prop: "qianming1",
    type: "slot",
    required: false,
  },
  {
    label: "安全交底人",
    optionItems: [],
    prop: "aqjdr",
    type: "slot",
    required: false,
  },
  {
    label: "接受交底人",
    optionItems: [],
    prop: "jsjdr",
    type: "slot",
    required: false,
  },
  // {
  //   label: "",
  //   optionItems: [],
  //   prop: "jsjdr2",
  //   type: "slot",
  //   required: false,
  // },
  // {
  //   label: "",
  //   optionItems: [],
  //   prop: "jsjdr3",
  //   type: "slot",
  //   required: false,
  // },
  // {
  //   label: "（所在部门） 监护人",
  //   optionItems: [],
  //   prop: "bmjhr",
  //   type: "input",
  //   required: false,
  // },
  // {
  //   label: "（消防队） 防火监护人",
  //   optionItems: [],
  //   prop: "fhjhr",
  //   type: "input",
  //   required: false,
  // },
];
const yjList = [
  "作业负责人意见（签字）",
  "所在单位（部门）意见（签名）",
  "安保部审批意见（签字）",
  "审批意见（Ⅰ级所在部门；Ⅱ级、Ⅲ级安保部；Ⅳ级经理室）（签字）",
  "完工验收（签字）",
];
yjList.forEach((item, index) => {
  let qianzhi = index === 0 ? null : "qianmingDt" + index;
  if (index === 4) {
    qianzhi = ["yjqm4", "qianming1", "aqjdr"];
  }
  formOptions.push({
    label: item,
    optionItems: [],
    type: "slot",
    prop: `yjqm` + (index + 1),
    qmDt: "qianmingDt" + (index + 1),
    qianzhi,
  });
  formOptions.push({
    label: "签名日期",
    optionItems: [],
    prop: "qianmingDt" + (index + 1),
    type: "datetime",
    required: false,
  });

  // formOptions.push({
  //   label: "",
  //   optionItems: [],
  //   type: "slot",
  //   prop: `yjqm` + (index + 1),
  // });
});
const longLabelSlots = [
  "yesOrNo1",
  "yesOrNo2",
  "yesOrNo3",
  "yesOrNo4",
  "yesOrNo5",
  "yesOrNo6",
  "yesOrNo7",
  "yesOrNo8",
  "yesOrNo9",
  "yesOrNo10",
  "yesOrNo11",
  "yesOrNo12",
  "yesOrNo13",
  "yesOrNo14",
  "yesOrNo15",
];
const qianmingSlots = [
  "qianming1",
  "qianming2",
  "qianming3",
  "qianming4",
  "qianming5",
  "qianming6",
  "qianming7",
  "qianming8",
  "qianming9",
  "qianming10",
  "qianming11",
  "qianming12",
  "qianming13",
  "qianming14",
  "qianming15",
  "qianming16",
  "qianming17",
  "qianming18",
  "qianming19",
  "yjqm1",
  "yjqm2",
  "yjqm3",
  "yjqm4",
  "yjqm5",
  "yjqm6",
  "yjqm7",
  "yjqm8",
  "aqjdr",
  "jsjdr",
  "jsjdr2",
  "jsjdr3",
  "otherqm",
];
const emptys = [
  "qianming1",
  "yjqm1",
  "yjqm2",
  "yjqm3",
  "yjqm4",
  "yjqm5",
  "qianmingDt1",
  "qianmingDt2",
  "qianmingDt3",
  "qianmingDt4",
  "qianmingDt5",
  "aqjdr",
  "jsjdr",
  "jsjdr2",
  "jsjdr3",
  "bmjhr",
  "fhjhr",
  "sjzykssj",
  "jobDate",
  "glqtzyp",
  "jobApplyDate",
  "img1",
];
const options = {
  formOptions,
  longLabelSlots,
  qianmingSlots,
  emptys,
};
export default options;
